#ifndef _PCA9685_H
#define _PCA9685_H

#define PCA9685_adrr 0xc0

#define PCA_Model 0x00
#define PCA9685_PRESCALE 0xFE

#define LED0_ON_L 0x06
#define LED0_ON_H 0x07
#define LED0_OFF_L 0x08
#define LED0_OFF_H 0x09

#define ALLLED_ON_L 0xFA
#define ALLLED_ON_H 0xFB
#define ALLLED_OFF_L 0xFC
#define ALLLED_OFF_H 0xFD

void PCA9685_setFreq(float freq);
int PCA9685_setPWM(uint8_t num,uint32_t on,uint32_t off);
void PCA9685_Init(float hz);
void setAngle(uint8_t num,uint8_t angle);

#endif